package com.toocms.jinjuhang.data.system

import com.toocms.jinjuhang.data.ImageData

data class NewsListData(val list: List<NewsItemData>?)

data class NewsItemData(
    val aa_id: String?,
    val az_id: String?,
    val news_id: String?,
    val cate_id: String?,
    val title: String?,
    val cate_name: String?,
    val create_time: String?,
    val pictures: List<ImageData>?
) {
    val id: String
        get() {
            return if (!news_id.isNullOrEmpty()) {
                news_id
            } else if (!aa_id.isNullOrEmpty()) {
                aa_id
            } else {
                ""
            }
        }
}